/*
 * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package top.continew.admin.hanfu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import top.continew.admin.hanfu.domain.Hanfu;
import top.continew.admin.hanfu.domain.bo.HanfuBo;
import top.continew.admin.hanfu.domain.dto.HanfuDto;
import top.continew.admin.hanfu.domain.vo.HanfuVo;
import top.continew.admin.hanfu.domain.vo.wx.HanfuWxDeVo;
import top.continew.admin.hanfu.domain.vo.wx.HanfuWxVo;
import top.continew.starter.data.mp.service.IService;

import java.util.ArrayList;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author bbm
 * @since 2025-03-20
 */
public interface IHanfuService extends IService<Hanfu> {

    Page<HanfuVo> getHanfuListByTypeId(Integer typeId, Integer pageNum, Integer pageSize);

    Page<HanfuWxVo> getHanfuWxListByTypeId(String typeName,
                                           Integer typeId,
                                           String queryName,
                                           Integer pageNum,
                                           Integer pageSize);

    Page<HanfuVo> getHanfuListByCondition(String typeName,
                                          String name,
                                          Integer status,
                                          Integer pageNum,
                                          Integer pageSize);

    int addHanfu(HanfuBo hanfu);

    int updateHanfuImg(HanfuBo hanfuBo);

    int deleteHanfu(ArrayList<Integer> id);

    HanfuVo getHanfuById(Integer id);

    HanfuWxDeVo getHanfuWxById(Integer id);

    int updateHanFu(HanfuDto hanfuDto);

}
